Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter logging to influxdb #311

Merged
merged 280 commits into from
Jul 3, 2023
Merged

Add parameter logging to influxdb #311

merged 280 commits into from
Jul 3, 2023

Conversation

bleykauf
Copy link
Collaborator

No description provided.

@bleykauf bleykauf linked an issue Feb 28, 2023 that may be closed by this pull request
@bleykauf
Copy link
Collaborator Author

Restoring remote parameters seems to be broken atm. After clicking upload parameters:

restoring parameters
Traceback (most recent call last):
  File "c:\users\bastian\documents\programming\linien\linien-gui\linien_gui\ui\device_manager.py", line 161, in ask_for_parameter_restore
    self.connection_thread.answer_whether_to_restore_parameters(should_restore)
  File "c:\users\bastian\documents\programming\linien\linien-gui\linien_gui\threads.py", line 129, in answer_whether_to_restore_parameters
    self.restore_parameters(dry_run=False)
  File "c:\users\bastian\documents\programming\linien\linien-gui\linien_gui\threads.py", line 156, in restore_parameters
    param.value = v
  File "c:\users\bastian\documents\programming\linien\linien-client\linien_client\remote_parameters.py", line 244, in value
    return self.parent.remote.exposed_set_param(self.name, pack(value))
  File "C:\Users\bastian\miniconda3\envs\linien\lib\site-packages\rpyc\core\netref.py", line 253, in __call__
    return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
  File "C:\Users\bastian\miniconda3\envs\linien\lib\site-packages\rpyc\core\netref.py", line 76, in syncreq
    return conn.sync_request(handler, proxy, *args)
  File "C:\Users\bastian\miniconda3\envs\linien\lib\site-packages\rpyc\core\protocol.py", line 469, in sync_request
    return self.async_request(handler, *args, timeout=timeout).value
  File "C:\Users\bastian\miniconda3\envs\linien\lib\site-packages\rpyc\core\async_.py", line 102, in value
    raise self._obj
_get_exception_class.<locals>.Derived: unorderable types: list() < int()

========= Remote Traceback (1) =========
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/rpyc/core/protocol.py", line 320, in _dispatch_request
    res = self._HANDLERS[handler](self, *args)
  File "/usr/local/lib/python3.5/dist-packages/rpyc/core/protocol.py", line 593, in _handle_call
    return obj(*args, **dict(kwargs))
  File "/root/linien/linien-server/linien_server/server.py", line 76, in exposed_set_param
    getattr(self.parameters, param_name).value = unpack(value)
  File "/root/linien/linien-server/linien_server/parameters.py", line 70, in value
    if self.min is not None and value < self.min:
TypeError: unorderable types: list() < int()

Traceback (most recent call last):
  File "c:\users\bastian\documents\programming\linien\linien-gui\linien_gui\app.py", line 66, in call_listeners
    self.parameters.call_listeners()
  File "c:\users\bastian\documents\programming\linien\linien-client\linien_client\connection.py", line 177, in wrapped
    return method(*args, **kwargs)
  File "c:\users\bastian\documents\programming\linien\linien-client\linien_client\remote_parameters.py", line 204, in call_listeners
    listener(value)
  File "C:\Users\bastian\Documents\programming\linien\linien-gui\linien_gui\ui\plot_widget.py", line 225, in set_pens
    r, g, b, *stuff = getattr(
TypeError: cannot unpack non-iterable int object

@bleykauf
Copy link
Collaborator Author

bleykauf commented May 24, 2023

9a2a8ae causes a race condition related to the on_change attribute.

Screenshot 2023-05-31 135342

Fixed... just an indentation error...

@bleykauf bleykauf marked this pull request as ready for review July 3, 2023 11:39
@bleykauf bleykauf merged commit 28919c9 into develop Jul 3, 2023
@bleykauf bleykauf deleted the feature/influxdb branch July 5, 2023 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add logging to influxdb
1 participant